﻿using System;

    class Variables5and10
    {
        static void Main()
        {
            //Exercise 11.
            //Declare  two integer variables and assign them with 5 and 10 and after that exchange their values.

            int Var1 = 5;
            int Var2 = 10;
            Console.WriteLine("Variable 1 = {0}. Variable 2 = {1}", Var1, Var2);
            int Var3 = Var1;    // here I use a third variable to ease the exchange.
            Var1 = Var2;           
            Var2 = Var3;           
            Console.WriteLine("After the exchange: Variable 1 = {0}. Variable 2 = {1}", Var1, Var2);
        }
    }

